#ifndef _COMPUTER_H
#define _COMPUTER_H

#include <iostream>
#include <string.h>
#include <vector>
#include "Player.h"
#include "Meld.h"

using std::ostream;
using std::vector;

class Computer:public Player
{
protected:
  int  valGrid[13][4];//look up table
  bool handReadFirst;//initially
public:
  Computer(string str1);//str1 is name, str2 is "ComputerPlayer"
  ostream & display(ostream &os) const;
   bool move(vector<Meld*> &tb2);
   bool firstMove(vector<Meld*> &tb2);

 private:
   bool readInGrid();//? or make public for human
   bool lookForRun(vector<Meld*> &tb2);
   bool lookForSet(vector<Meld*> &tb2);
   bool addToTable(vector<Meld*> &tb2);
};


#endif
